import request from '@/utils/request'

// 查询客户积分明细列表
export function listCar_4s_customer_points_detail(query) {
  return request({
    url: '/system/car_4s_customer_points_detail/list',
    method: 'get',
    params: query
  })
}

// 查询客户积分明细详细
export function getCar_4s_customer_points_detail(pointsId) {
  return request({
    url: '/system/car_4s_customer_points_detail/' + pointsId,
    method: 'get'
  })
}

// 新增客户积分明细
export function addCar_4s_customer_points_detail(data) {
  return request({
    url: '/system/car_4s_customer_points_detail',
    method: 'post',
    data: data
  })
}

// 修改客户积分明细
export function updateCar_4s_customer_points_detail(data) {
  return request({
    url: '/system/car_4s_customer_points_detail',
    method: 'put',
    data: data
  })
}

// 删除客户积分明细
export function delCar_4s_customer_points_detail(pointsId) {
  return request({
    url: '/system/car_4s_customer_points_detail/' + pointsId,
    method: 'delete'
  })
}
